Creating a library item

When you create a library item, you select a portion of a document's BODY section, and Dreamweaver converts the selected area into a library item.

Library items can include any BODY element, including text, tables, forms, images, Java applets, plugins, and ActiveX elements. Dreamweaver stores only a reference to linked items such as images. The original file must remain at the specified location for the library item to work correctly.

Library items can also contain behaviors, but there are special requirements for editing the behaviors in library items; see Editing a behavior in a library item. Library items cannot contain timelines or style sheets, because the code for these elements is part of the HEAD section.

To create a library item:

1 Select a portion of a document to save as a library item.
2 Do one of the following:
Choose Window > Library and drag the selection into the Library palette.
In the Library palette, click the context menu button, then select Create Library Item.
Click the New Library Item icon in the lower right area of the Library palette.
Choose Modify > Library > Add Object to Library.
3 Enter a name for the new library item.